﻿// -----------------------------------------------------------------------
// <copyright file="RandomHelper.cs" company="TaskyMedia LLC">
//  Copyright (c) TaskyMedia LLC
// </copyright>
// -----------------------------------------------------------------------

namespace SohpServer
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// Provides shared access to a pseudo-RNG.
    /// </summary>
    public static class RandomHelper
    {
        /// <summary>
        /// Shared <see cref="Random"/> instance.
        /// </summary>
        private static Random r = new Random();

        /// <summary>
        /// Gets the next random number.
        /// </summary>
        /// <returns>Returns a random number.</returns>
        public static int Next()
        {
            return r.Next();
        }
    }
}
